<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>

<head>
	 <!-- 这里引入导航信息header.tpl -->
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>
		新增账户信息
	</title>
	<style>
		.page-content-sell {
		    background-clip: padding-box;
		    background-color: #ffffff;
		    position: relative;
		    padding: 0px 30px 20px 30px;
		    height: 100%;
		    max-height: 300px;
   			overflow-x: auto;
	    }
		/* .form-group{float:left} */
		.txt-fl{width:80px;float:left;}
		.txt-fl-l{width:110px;float:left;}
		.m-r-30{margin-right:40px}
	</style>
	<script type="text/javascript">
	var prdPath = '<%=context%>business/projectManager/';
	//默认加载
	$(function() {
		//把访问路径传到js
		setPathPrefix(prdPath);
	});
</script>
</head>
<body class="sub-page">
	<form name="prdAccountListForm"  id="prdAccountListForm" action="<%=context%>business/projectManager/addPrdAccountList.do" method="post"  class="form-horizontal" >
	 	<fieldset>
		<input type="hidden" name="prjcode" id="prjcode" value="${prjcode}"/>
		<input type="hidden" name="accId" id="accId" value=""/>
		<input type="hidden" name="accBankNameNM" id="accBankNameNM" value=""/>
	 		<div class="page-content-sell">
			    <div class="page-body">
			    	<div class="col-md-12">
						<div class="form-group">
							<label class="txt-fl-l control-label">账户类别<span class="text-danger">*</span></label>
							<div class="col-sm-4 m-r-30" style="line-height:30px">
							  	<label><input type="radio" name="accClass" checked="checked" value="1"/> 新增账户</label>
							  	<label><input type="radio" name="accClass" value="0"/> 已有账户</label>
							  	<label id="accClass-error" class="error" for="accClass" ></label>
							</div>
						</div>	
					</div>
			    
			    	<div class="col-md-12">
						<div class="form-group">
							<label class="txt-fl-l control-label">账户层级<span class="text-danger">*</span></label>
							<div class="col-sm-4 m-r-30">
								<select class="select2" name="accLevel" id="accLevel" placeholder="账户层级" onchange="accLevelOnChange();">
									<option value="">请选择</option>
									<option value="0">产品</option>
									<option value="1">系列产品</option>
								</select>
							</div>
							<label class="txt-fl control-label">产品名称 <span style="display:none;" id="spanShow" class="text-danger">*</span></label>
							<div class="col-sm-4" >
								<select class="select2" disabled="disabled" name="prdcode" id="prdcode" placeholder="产品名称"></select>
							</div>
						</div>
					</div>
					
				    <div class="col-md-12" name="addAccountFlag">
						<div class="form-group">
							<label class="txt-fl-l control-label">账户分类<span class="text-danger">*</span></label>
							<div class="col-sm-4 m-r-30">
								<select class="select2" name="accCategory" id="accCategory" placeholder="账户分类" onchange="accCategoryOnChange();"></select>
							</div>
							<label class="txt-fl control-label">账户类型<span class="text-danger">*</span></label>
							<div class="col-sm-4" >
								<select class="select2" name="accTypeId" id="accTypeId" placeholder="账户类型"></select>
							</div>
						</div>
					</div>
					
					<div class="col-md-12">
						<div class="form-group">
							<label class="txt-fl-l control-label">开户行<span class="text-danger">*</span></label>
							<div class="col-sm-4 m-r-30">
								<select class="select2" name="accBankName" id="accBankName" placeholder="开户行" ></select>
							</div>
						</div>
					</div>
					
					<div class="col-md-12" name="addAccountFlag">
						<div class="form-group">
							<label class="txt-fl-l control-label">银行户名<span class="text-danger">*</span></label>
							<div class="col-sm-4 m-r-30">
								<input type="text" class="form-control" placeholder="银行户名" id="accName" name="accName"/>
							</div>
							<label class="txt-fl control-label">银行账号<span class="text-danger">*</span></label>
							<div class="col-sm-4">
								<input type="text" class="form-control" placeholder="银行账号" id="accCode" name="accCode"/>
							</div>
						</div>
					</div>
					
				</div> 					
				<div class="page-footer" >
					<button type="button" id="submitBtn" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="save();">提交</button>
					<button type="button" id="cancelBtn" class="btn btn-link btn-w-xs" onclick="closeLayer();">取消</button>
				</div>
			</div>
		</fieldset>
	</form>
	<script type="text/javascript" src="<%=context%>resources/modules/business/projectManager/prdAccountListAdd.js?r=<%=Math.random()%>"></script>
	</body>
</html>